package com.kingdee.eas.custom.rcbudget.ekingwin.www.esb.QMYX_SUNAC_363_easBrokerageBillApprove;

import java.io.Serializable;
import javax.xml.namespace.QName;
import org.apache.axis.description.ElementDesc;
import org.apache.axis.description.TypeDesc;
import org.apache.axis.encoding.Deserializer;
import org.apache.axis.encoding.Serializer;
import org.apache.axis.encoding.ser.BeanDeserializer;
import org.apache.axis.encoding.ser.BeanSerializer;

public class Response
  implements Serializable
{
  private HEADER HEADER;
  private String LIST;
  private Object __equalsCalc = null;

  private boolean __hashCodeCalc = false;

  private static TypeDesc typeDesc = new TypeDesc(Response.class, true);

  static {
    typeDesc.setXmlType(new QName("http://www.ekingwin.com/esb/QMYX_SUNAC_363_easBrokerageBillApprove", ">response"));
    ElementDesc elemField = new ElementDesc();
    elemField.setFieldName("HEADER");
    elemField.setXmlName(new QName("http://www.ekingwin.com/esb/QMYX_SUNAC_363_easBrokerageBillApprove", "HEADER"));
    elemField.setXmlType(new QName("http://www.ekingwin.com/esb/QMYX_SUNAC_363_easBrokerageBillApprove", "HEADER"));
    elemField.setNillable(false);
    typeDesc.addFieldDesc(elemField);
    elemField = new ElementDesc();
    elemField.setFieldName("LIST");
    elemField.setXmlName(new QName("http://www.ekingwin.com/esb/QMYX_SUNAC_363_easBrokerageBillApprove", "LIST"));
    elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    elemField.setNillable(false);
    typeDesc.addFieldDesc(elemField);
  }

  public Response()
  {
  }

  public Response(HEADER HEADER, String LIST)
  {
    this.HEADER = HEADER;
    this.LIST = LIST;
  }

  public HEADER getHEADER()
  {
    return this.HEADER;
  }

  public void setHEADER(HEADER HEADER)
  {
    this.HEADER = HEADER;
  }

  public String getLIST()
  {
    return this.LIST;
  }

  public void setLIST(String LIST)
  {
    this.LIST = LIST;
  }

  public synchronized boolean equals(Object obj)
  {
    if (!(obj instanceof Response)) return false;
    Response other = (Response)obj;
    if (obj == null) return false;
    if (this == obj) return true;
    if (this.__equalsCalc != null) {
      return this.__equalsCalc == obj;
    }
    this.__equalsCalc = obj;

    boolean _equals = 
      ((this.HEADER == null) && (other.getHEADER() == null)) || (
      (this.HEADER != null) && 
      (this.HEADER.equals(other.getHEADER())) && (
      ((this.LIST == null) && (other.getLIST() == null)) || (
      (this.LIST != null) && 
      (this.LIST.equals(other.getLIST())))));
    this.__equalsCalc = null;
    return _equals;
  }

  public synchronized int hashCode()
  {
    if (this.__hashCodeCalc) {
      return 0;
    }
    this.__hashCodeCalc = true;
    int _hashCode = 1;
    if (getHEADER() != null) {
      _hashCode += getHEADER().hashCode();
    }
    if (getLIST() != null) {
      _hashCode += getLIST().hashCode();
    }
    this.__hashCodeCalc = false;
    return _hashCode;
  }

  public static TypeDesc getTypeDesc()
  {
    return typeDesc;
  }

  public static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType)
  {
    return 
      new BeanSerializer(
      _javaType, _xmlType, typeDesc);
  }

  public static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType)
  {
    return 
      new BeanDeserializer(
      _javaType, _xmlType, typeDesc);
  }
}